package com.mrjoew.weekend.services.impl.bz;

import com.mrjoew.weekend.entities.po.ContentArticlePO;
import com.mrjoew.weekend.repositories.bz.ContentArticleRepository;
import com.mrjoew.weekend.services.bz.ContentArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * @author Christopher Jones
 * @ClassName ContentArticleServiceImpl
 * @explain
 * @date 2020/6/20 0020 12:43
 */
@Service
@Transactional
public class ContentArticleServiceImpl implements ContentArticleService {

    @Autowired
    private ContentArticleRepository contentArticleRepository;

    @Override
    public boolean save(ContentArticlePO po) {
        contentArticleRepository.save(po);
        return true;
    }
}
